package com.wulis.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.poi.hssf.util.HSSFColor;

/**
 * @author wuligao
 * @date 日期：2024年02月04日
 * @description : excel导出背景颜色
 */
@AllArgsConstructor
@Getter
public enum ColorEnum {

    /**
     * Excel背景颜色
     */
    RED("红色", HSSFColor.HSSFColorPredefined.RED.getIndex()),
    GREEN("绿色", HSSFColor.HSSFColorPredefined.GREEN.getIndex()),
    BLANK("白色", HSSFColor.HSSFColorPredefined.WHITE.getIndex()),
    YELLOW("黄色", HSSFColor.HSSFColorPredefined.YELLOW.getIndex()),
    BLUE("蓝色", HSSFColor.HSSFColorPredefined.CORNFLOWER_BLUE.getIndex()),
    ROYAL_BLUE("宝蓝色", HSSFColor.HSSFColorPredefined.ROYAL_BLUE.getIndex()),
    CORAL("珊瑚", HSSFColor.HSSFColorPredefined.CORAL.getIndex()),
    ORCHID("兰花", HSSFColor.HSSFColorPredefined.ORCHID.getIndex()),
    MAROON("栗色", HSSFColor.HSSFColorPredefined.MAROON.getIndex()),
    LEMON_CHIFFON("柠檬雪纺", HSSFColor.HSSFColorPredefined.LEMON_CHIFFON.getIndex()),
    CORNFLOWER_BLUE("矢车菊蓝", HSSFColor.HSSFColorPredefined.CORNFLOWER_BLUE.getIndex()),
    LAVENDER("薰衣草", HSSFColor.HSSFColorPredefined.LAVENDER.getIndex()),
    PALE_BLUE("淡蓝", HSSFColor.HSSFColorPredefined.PALE_BLUE.getIndex()),
    LIGHT_TURQUOISE("浅绿松石", HSSFColor.HSSFColorPredefined.LIGHT_TURQUOISE.getIndex()),
    LIGHT_GREEN("浅绿色", HSSFColor.HSSFColorPredefined.LIGHT_GREEN.getIndex()),
    LIGHT_YELLOW("浅黄色", HSSFColor.HSSFColorPredefined.LIGHT_YELLOW.getIndex()),
    ROSE("玫瑰色", HSSFColor.HSSFColorPredefined.ROSE.getIndex()),
    SKY_BLUE("天蓝色", HSSFColor.HSSFColorPredefined.SKY_BLUE.getIndex());

    private final String name;
    private final Short index;

}
